﻿<UserControl x:Class="KineticListViewTest.Circular"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:KineticListView="clr-namespace:KineticListView;assembly=KineticListView" xmlns:KineticListViewTest="clr-namespace:KineticListViewTest" 
             mc:Ignorable="d" >
    <UserControl.Resources>
        <KineticListViewTest:ListOfElementViewModel x:Key="vm" />
        <DataTemplate x:Key="DataTemplate1" >
            <Border BorderThickness="5" Width="197" Height="197" BorderBrush="Red">
                <StackPanel>
                    <TextBlock TextWrapping="Wrap"><Run Text="Stringa che è abbastanza lunga0"/></TextBlock>
                    <TextBlock TextWrapping="Wrap" Text="{Binding IValue}" FontFamily="Segoe WP Black" FontSize="64" Foreground="Red" RenderTransformOrigin="0.5,0.5" TextAlignment="Center">
        				<TextBlock.RenderTransform>
        					<TransformGroup>
        						<ScaleTransform/>
        						<SkewTransform AngleX="20"/>
        						<RotateTransform/>
        						<TranslateTransform/>
        					</TransformGroup>
        				</TextBlock.RenderTransform>
                    </TextBlock>
                    <Button Content="Cliccami" Click="Button_Click" />
                </StackPanel>
            </Border>
        </DataTemplate>
    </UserControl.Resources>
    <StackPanel d:DataContext="{StaticResource ResourceKey=vm}" Width="1600" Height="700">

        <StackPanel Orientation="Horizontal" Width="800">
            <KineticListView:KineticListView x:Name="listView4" ItemsSource="{Binding Path=DataToShowSingleRepetition}"
                  Width="200"
                  Height="200" HypeEnabled="true"
                  Circular="true" 
                  CircularRepetitions="1"
                  ItemTemplate="{DynamicResource DataTemplate1}" 
                  BorderThickness="0"
                                 Direction="Vertical">

            </KineticListView:KineticListView>

            <KineticListView:KineticListView x:Name="listView5" Margin="10, 0, 10, 0"
                  ItemsSource="{Binding Path=DataToShowSingleRepetition}"
                  Width="200"
                  Height="200" HypeEnabled="true"
                  Circular="true" 
                  CircularRepetitions="1"
                  ItemTemplate="{DynamicResource DataTemplate1}" 
                  BorderThickness="0"
                  Direction="Horizontal">

            </KineticListView:KineticListView>

            
            <!--<KineticListView:KineticListView 
                x:Name="listView3" ItemsSource="{Binding Path=DataToShowRepetition}"
                  Width="600"
                  ItemTemplate="{DynamicResource DataTemplate1}" 
                  BorderThickness="0"
                  Circular="true"
                  CircularRepetitions="6"
                  Direction="Horizontal">

            </KineticListView:KineticListView>-->
        </StackPanel>
        <StackPanel Orientation="Horizontal" Width="1600" Margin="0, 30, 0, 30">
           

            <KineticListView:KineticListView x:Name="listView0" Margin="10, 0, 10, 0"
                  ItemsSource="{Binding Path=DataToShowSingleRepetition}"
                  Width="1600"
                  Height="200" HypeEnabled="true"
                  Circular="false" 
                  ItemTemplate="{DynamicResource DataTemplate1}" 
                  BorderThickness="0"
                  Direction="Horizontal">

            </KineticListView:KineticListView>
        </StackPanel>
        
    </StackPanel>
</UserControl>
